package mvc;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

public class ViewLoadUser {

	protected Shell shell;
	protected Shell shellLoadUser;
	public Button btnNewButton;
	private Text text;
	private Text text_1;

	public ViewLoadUser(MainController controller){
		shellLoadUser = new Shell(controller.mainView.shell);
		shellLoadUser.setLocation(controller.mainView.shell.getLocation().x + 40, controller.mainView.shell.getLocation().y + 40);
		shellLoadUser.setText("New User");
		shellLoadUser.setSize(350, 200);	
		shellLoadUser.addListener(SWT.Dispose,controller);
		
		btnNewButton = new Button(shellLoadUser, SWT.None);
		btnNewButton.addListener(SWT.Selection, controller);
		
		btnNewButton.setBounds(252, 133, 68, 23);
		btnNewButton.setText("Register");
		
		Label lblEnterYourName = new Label(shellLoadUser, SWT.NONE);
		lblEnterYourName.setBounds(23, 10, 110, 13);
		lblEnterYourName.setText("Enter username");
		
		Label label = new Label(shellLoadUser, SWT.NONE);
		label.setText("Enter password");
		label.setBounds(24, 66, 110, 13);
		
		text = new Text(shellLoadUser, SWT.BORDER);
		text.setBounds(24, 29, 151, 19);
		
		text_1 = new Text(shellLoadUser, SWT.BORDER);
		text_1.setBounds(24, 85, 151, 19);
		shellLoadUser.open();
	
	}
}
